package com.example.springbootlearn.netty.baseasr;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;

@Slf4j
@AsrClient(CodeEnum.PRIVATE_TX_ASR)
@RequiredArgsConstructor
public class PrivateTxAsrWsClient extends AsrWsbBaseClient {
    
    @Value("${yuyitech.asrserver.url:ws://127.0.0.1:8087/websocket}")
    private String txAsrWsUrl;


    @Override
    public String getWsUrl(String sessionId) {
        return txAsrWsUrl;
    }

    @Override
    protected WebSocketInfo.CloseStrategy getCloseStrategy() {
        return new WebSocketInfo.EndMessageCloseStrategy();
    }

}
